<%= stylesheet_link_tag :all %>

<h1>Listing users</h1>

<table>
  <tr>
    <th></th>
    <th></th>
    <th></th>
    <th>Email</th>
    <th>Firstname</th>
    <th>Lastname</th>
    <th>Usertype</th>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%= link_to 'Show', user %></td>
    <td><%= link_to 'Edit', edit_user_path(user) %></td>
    <td><%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %></td>
    <td><%=h user.email %></td>
    <td><%=h user.firstname %></td>
    <td><%=h user.lastname %></td>
    <td><%=h user.usertype %></td>
  </tr>
<% end %>
</table>

<br />


<%= link_to 'New user', new_user_path %>
<%= link_to 'Upload CSS', 'css/index' %>
<%= link_to 'Export', 'export/index' %>
<%= link_to 'Fields', 'fields/index' %>
